<?php
$intTotal	  	= 0;
$intLimit	  	= STATUS_LIMIT;
$intPage	  	= $objRequest->getParam('page',1);
$intOffset		= ($intPage - 1) * $intLimit;
if($intOffset < 0) $intOffset = 0;
$objFullhouse 	= new Fullhouse();
$objVfriendUser	= new Vfriend_User();
$arrData		= $objFullhouse->getAll($intUserProId,$intOffset,$intLimit,$intTotal);
$arrResult		= array();
if($arrData) {
	foreach($arrData as $value) {
		$value['stotal']	= $objFullhouse->getCmtTotal($value['ublastid']);
		$value['slist']		= $objFullhouse->getCmtAll($intLs,$value['ublastid'],0,COMMENT_LIMIT_TOP);
		$arrResult[]		= $value;
	}
}
$this->view->arrResult		= $arrResult;
$this->view->intTotal		= $intTotal;
$this->view->intOffset		= $intOffset;
$this->view->intLimit		= $intLimit;	
$this->view->intLs			= $intLs;	
$this->view->intPage		= $intPage;	
$this->view->objUser		= $objVfriendUser->getFull($intUserProId);
?>